package com.zl.learning.object.clone;

import lombok.Data;

@Data
public class Student implements Cloneable {
    private String username;
    private String password;

    @Override
    public Student clone() {
        try {
            return (Student) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return null;
    }
}
